<template>
  <div class="warp">
    <div class="warp_auto">
      <div v-if="url === ''">请传入URL</div>
      <iframe
        v-else
        :src="url"
        frameborder="0"
        width="100%"
        height="800"
        scrolling="auto"
      ></iframe>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      url: "",
    };
  },
  created() {
    //获取请求参数
    console.log(this.$route.query);
    this.url = decodeURIComponent(this.$route.query.url);
  },
};
</script>
